﻿/*-----------------------------------------------
// File: UltiLoader.cs
// Description: 
// Author: Shaobing	492057342@qq.com
-----------------------------------------------*/
using UnityEngine;
using System.Collections;

namespace AssetLoad
{
    public class UltiLoader : LoaderBase
    {
        public override string GetPrefix()
        {
            return @"ultimate/";
        }
        public GameObject LoadUlti(string resourceName)
        {
            return Load(resourceName) as GameObject;
        }
        public void UnloadUlti(GameObject obj, string resourceName)
        {
            Unload(obj, resourceName);
        }
        public GameObject GetUlti(string resourceName)
        {
            var obj = Get(resourceName);
            if (obj != null)
                return GameObject.Instantiate(obj) as GameObject;
            return null;
        }
        public void LoadUltiAsync(string resourceName)
        {
            LoadAsync(resourceName);
        }
    }
}
